package com.axs.camera;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.webkit.WebView;

import com.axs.camera.crop.util.WebViewUtils;

public class WebViewActivity extends AppCompatActivity {

    private WebView wedView;
    private Toolbar toolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web_view);
        wedView = findViewById(R.id.wedView);
        toolbar = findViewById(R.id.toolbar);
        toolbar.setNavigationOnClickListener(v -> finish());
        Intent intent = getIntent();
        String beanBaidu = intent.getStringExtra("beanBaidu");
        Log.d("TAG", "onCreate: " + beanBaidu);
        WebViewUtils.initWedView(wedView,beanBaidu);
    }
}